package com.jhx.mall.app.service.impl;

import com.jhx.mall.app.service.DtsGoodsService;
import com.jhx.mall.dao.DtsGoodsDao;
import com.jhx.mall.dao.impl.DtsGoodsDaoImpl;
import com.jhx.mall.entity.DtsCategory;
import com.jhx.mall.entity.DtsGoods;
import com.jhx.mall.vo.DtsCategoryVo;

import java.util.List;

public class DtsGoodsServiceImpl implements DtsGoodsService {

    DtsGoodsDao dtsGoodsDao = new DtsGoodsDaoImpl();

    @Override
    public List<DtsGoods> selectGoodsNew() {
        return dtsGoodsDao.selectGoodsNew();
    }

    @Override
    public List<DtsGoods> selectGoodsHot() {
        return dtsGoodsDao.selectGoodsHot();
    }

    @Override
    public DtsGoods selectGoodsById(long id) {
        return dtsGoodsDao.selectGoodsById(id);
    }

    @Override
    public List<DtsGoods> selectGoodsByCateId(Long categoryId) {
        return dtsGoodsDao.selectGoodsByCateId(categoryId);
    }

    @Override
    public List<DtsGoods> selectGoodsByCategoryId(long categoryId) {
        return dtsGoodsDao.selectGoodsByCategoryId(categoryId);
    }

    @Override
    public List<DtsGoods> selectGoodsByDtsGoods(DtsGoods dtsGoods, long orderPrice) {
        return dtsGoodsDao.selectGoodsByDtsGoods(dtsGoods, orderPrice);
    }

    @Override
    public DtsCategoryVo selectGoodsByCategoryVo(DtsCategory dtsCategory) {
        return dtsGoodsDao.selectGoodsByCategoryVo(dtsCategory);
    }
}
